#include "Employee.h"


int Employee::employeeIDGenerator = 1000;

Employee::Employee(const string firstName,const  string lastName, int age, const eGender gender, int salary)
	:Person(firstName, lastName, age, gender), salary(salary), employeeID(employeeIDGenerator++)
{
	
}

void Employee::setSalary(int salary)
{
	this->salary = salary;
}

int Employee::getId() const
{
	return employeeID;
}

int Employee::getSalary() const
{
	return salary;
}

bool Employee::operator==(const Employee& other) const
{
	if (this->employeeID == other.employeeID)
	{
		return true;
	}

	return false;
}

void Employee::toOs(ostream& os, bool isFullPrint) const
{
	os << "Employee={Id=" << employeeID << ", Salary=" << salary << "\n\t"; 
	Person::toOs(os);
	os << "}";
}

Employee::~Employee()
{
}